package com.myzl.common.utils.uuid;

/**
 * @author Administrator
 * @date 2022年8月2日10:57:47
 */
public class TxId {

    private static int id = 0;
    private final static int MAX_ID = 65535;

    public static int getNext(){
        synchronized (TxId.class){
            if (id == MAX_ID){
                id = 1;
            } else {
                id ++;
            }
        }
        return id ;
    }
}
